#ifndef PROGRESSBARDELEGATE_H
#define PROGRESSBARDELEGATE_H

#include <QObject>
#include <QProgressBar>
#include <QPainter>
#include <QApplication>
#include <QModelIndex>
#include <QStyleOptionViewItem>

#include "downloaderwindow.h"
#include "config.h"

class DownloaderWindow;

class ProgressBarDelegate : public QItemDelegate
{
    Q_OBJECT
    const DownloaderWindow* const window;
public:
    explicit ProgressBarDelegate(const DownloaderWindow* const window, QObject *parent = 0);
    void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index ) const;
signals:
    
public slots:
    
};

#endif // PROGRESSBARDELEGATE_H
